import ase
from ase.calculators import calculator

from .logger import log

class VaspProcess():

    dos_properties = None

    def __init__(self,
                 directory,
                 debug=None):

        self.debug = debug
        if(debug is not None):
            log.setLevel(debug)

        if isinstance(directory, str):
            self.directory = directory
        else:
            try:
                self.directory = directory.directory
            except AttributeError as e:
                log.error('Input must rather be a string or have directory attribute!')
                raise e
        log.debug(self.directory)

